<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreatePositionSupervisorAllowTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('position_supervisor_allow', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('mobile',12)->comment('预留手机号');
            $table->string('truename',30)->nullable()->comment('姓名');
            $table->timestamps();
            $table->softDeletes();
            $table->engine='InnoDb';
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('position_supervisor_allow');
    }
}
